import { constantRoutes } from '@/router/index'
const state = {
  Menus: [...constantRoutes]
}

const mutations = {
  getMenus(state, router) {
    state.Menus = [...constantRoutes, ...router]
  }
}

export default {
  namespaced: true,
  state,
  mutations

}
